package com.helloworld.fiberflax;


import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;

@Mod.EventBusSubscriber(value = Side.CLIENT, modid = "fiberflax")
public final class ModelMapper {
    @SubscribeEvent
    public static void onModelReg(ModelRegistryEvent event) {
        ModelLoader.setCustomModelResourceLocation(Fiberflax.fiberflaxSeed, 0, new ModelResourceLocation(Fiberflax.fiberflaxSeed.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.fiberflaxItem, 0, new ModelResourceLocation(Fiberflax.fiberflaxItem.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.fiberflaxRope, 0, new ModelResourceLocation(Fiberflax.fiberflaxRope.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.Yamato, 0, new ModelResourceLocation(Fiberflax.Yamato.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.laval, 0, new ModelResourceLocation(Fiberflax.laval.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.superflaxIngot, 0, new ModelResourceLocation(Fiberflax.superflaxIngot.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.superflaxItem, 0, new ModelResourceLocation(Fiberflax.superflaxItem.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.fiberflaxHelmet, 0, new ModelResourceLocation(Fiberflax.fiberflaxHelmet.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.fiberflaxAxe, 0, new ModelResourceLocation(Fiberflax.fiberflaxAxe.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(Fiberflax.fiberflaxBag,0,new ModelResourceLocation(Fiberflax.fiberflaxBag.getRegistryName(),"inventory"));
    }
}
